package com.xuanwei.dao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xuanwei.dao.Do.OrderDo;
import com.xuanwei.dao.entity.XwOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2019-07-11
 */
public interface XwOrderMapper extends BaseMapper<XwOrder> {

    Page<OrderDo> findRefundOrder(Page<OrderDo> page,
                                  @Param("refundType") Integer refundType,
                                  @Param("orderNo") String orderNo,
                                  @Param("nickName") String nickname,
                                  @Param("receiveName") String receiveName,
                                  @Param("receivePhone") String receivePhone,
                                  @Param("startTime") LocalDate startTime,
                                  @Param("endTime") LocalDate endTime);


    Page<OrderDo> findBusinessOrder(Page<OrderDo> page,
                                  @Param("type") Integer type,
                                  @Param("orderNo") String orderNo,
                                  @Param("nickName") String nickname,
                                  @Param("receiveName") String receiveName,
                                  @Param("receivePhone") String receivePhone,
                                  @Param("startTime") LocalDate startTime,
                                  @Param("endTime") LocalDate endTime);
}
